package com.heima;

public class Animal {
    private int age;
    private double height;
    private String name;

    //有参构造
    public Animal(int age, double height, String name) {
        this.age = age;
        this.height = height;
        this.name = name;
    }

    //无参构造
    public Animal() {

    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public double getHeight() {
        return height;
    }

    public void setHeight(double height) {
        this.height = height;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
